﻿using System.Runtime.InteropServices;

namespace SUNRPA.CONTROLS.IMPL.domain.flowRunningVar {
    /// <summary>
    /// 变量封装类
    /// 所有变量都是先定义再赋值，定义时variable为空
    /// </summary>
    public class RPAVariableDefineWrapper {
        private RPAVariable variable;
        private Type varType;
        private FlowItem flowItem;

        public RPAVariableDefineWrapper(RPAVariable variable, Type varType, [Optional]FlowItem item) {
            this.variable = variable;
            this.varType = varType;
            this.flowItem = item;
        }

        public RPAVariable Variable { get => variable; set => variable = value; }
        public Type VarType { get => varType; set => varType = value; }
        public FlowItem FlowItem { get => flowItem; set => flowItem = value; }
    }
}
